package com.brspace.qualitycontrol.service.impl;

import com.brspace.qualitycontrol.entity.PublishUser;
import com.brspace.qualitycontrol.mapper.PublishUserMapper;
import com.brspace.qualitycontrol.service.PublishUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Hugo
 * @since 2021-04-08
 */
@Service
public class PublishUserServiceImpl extends ServiceImpl<PublishUserMapper, PublishUser> implements PublishUserService {

    @Resource
    private PublishUserMapper publishUserMapper;

    //修改当前查询发文在当前登录用户下为已阅
    @Override
    public void updateIsRead(String id, String userId) {
        publishUserMapper.updateIsRead(id,userId);
    }
}
